<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>带参数的函数</title>
    <script>
        function show(className){
            for (let i = 0; i < 5; i++) {
                console.log(i+1,"欢迎学习",className);
            }
        }
    </script>
</head>
<body>
    <button onclick="show('Javascript')">欢迎学习Javascript</button>
    <button onclick="show('html')">欢迎学习html</button>
    <button onclick="show('css')">欢迎学习css</button>
</body>
</html>